<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-title">
                <h5>综合数据统计</h5>
            </div>
            <div class="ibox-content">
                <form class="form-horizontal" action="<?php echo e(route('stat.data')); ?>" method="post"
                      enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>

                    <table class="table-striped table-bordered table-hover table-condensed">
                        <tr class="b-group">
                            <td class="b-child" colspan="2">
                                <table class="table-striped table-bordered table-hover table-condensed">
                                    <tr>
                                        <td>
                                            <?php echo $__env->make('widget.between_datetime',['showEndTime'=>true], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                        <td>
                                            <?php echo $__env->make('widget.query_and_refresh', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                        <td>
                                            <?php echo $__env->make('widget.dataType', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr class="b-group">
                            <th style="min-width: 108px;">
                                <label>全选/不选&nbsp;&nbsp;
                                    <input type="checkbox" checked="checked" value=""
                                           onclick="checkAll(this)"></label>
                            </th>
                            <td class="b-child">
                                <div style="max-height:6.5rem;overflow-y:scroll;">
                                    <?php echo $__env->make('widget.channel', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                </div>
                            </td>
                        </tr>
                        <tr class="b-group">
                            <th width="10%">
                                <label>全选/不选&nbsp;&nbsp;
                                    <input type="checkbox" checked="checked" value="" onclick="checkAll(this)"></label>
                            </th>
                            <td class="b-child">
                                <div style="max-height:10rem;overflow-y:scroll;">
                                    <?php echo $__env->make('widget.server', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                                </div>
                            </td>
                        </tr>
                    </table>
                </form>
                <table class="table table-striped table-bordered table-hover tblData" data-toggle="table"
                       data-pagination="true">
                    <thead>
                    <tr>
                        <th class="text-center">时间</th>

                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="在当日注册,并登录游戏的用户">新增用户</a></th>
                        <th class="text-center">老用户</th>
                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="当日登录游戏的所有用户">活跃用户</a></th>
                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="当日在游戏内有消费行为的用户">活跃付费用户</a></th>
                        <th class="text-center">总收入</th>

                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="活跃付费用户 / 活跃用户">活跃付费率</a></th>
                        <th class="text-center">
                            <a href="javascript:;" data-toggle="tooltip" data-placement="top"
                               title="总收入 / 活跃用户">ARPU</a>
                        </th>
                        <th class="text-center">
                            <a href="javascript:;" data-toggle="tooltip" data-placement="top"
                               title="总收入 / 活跃付费用户">ARPPU</a>
                        </th>
                        <th class="text-center">新付费人数</th>
                        <th class="text-center">新用户收入</th>

                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="新付费人数 / 新增用户">新用户付费率</a></th>
                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="新用户收入 / 新增用户">新用户ARPU</a></th>
                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="新用户收入 / 新付费人数">新用户ARPPU</a></th>
                        <th class="text-center">老付费人数</th>
                        <th class="text-center">老用户收入</th>

                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="老付费人数 / 老用户">老用户付费率</a></th>
                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="老用户收入 / 老用户">老用户ARPU</a></th>
                        <th class="text-center"><a href="javascript:;" data-toggle="tooltip" data-placement="top"
                                                   title="老用户收入 / 老付费人数">老用户ARPPU</a></th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php $__currentLoopData = $stat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($item['date']); ?></td>

                            <td><?php echo e($item['new_users']); ?></td>
                            <td><?php echo e($item['old_users']); ?></td>
                            <td><?php echo e($item['active_users']); ?></td>
                            <td><?php echo e($item['pay_users']); ?></td>
                            <td><?php echo e($item['amounts']); ?></td>

                            <td><?php echo e($item['active_pay_rate']); ?></td>
                            <td><?php echo e($item['arpu']); ?></td>
                            <td><?php echo e($item['arppu']); ?></td>
                            <td><?php echo e($item['new_pay_users']); ?></td>
                            <td><?php echo e($item['new_pay_amounts']); ?></td>

                            <td><?php echo e($item['new_user_pay_rate']); ?></td>
                            <td><?php echo e($item['new_user_arpu']); ?></td>
                            <td><?php echo e($item['new_user_arppu']); ?></td>
                            <td><?php echo e($item['old_pay_users']); ?></td>
                            <td><?php echo e($item['old_pay_amounts']); ?></td>

                            <td><?php echo e($item['old_user_pay_rate']); ?></td>
                            <td><?php echo e($item['old_user_arpu']); ?></td>
                            <td><?php echo e($item['old_user_arppu']); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
                <div class="pull-right pagination m-t-no">
                    <div class="text-center">
                        
                    </div>
                    <div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
    <script>
    </script>
    <link href="<?php echo e(loadEdition('/admin/css/plugins/datapicker/bootstrap-datepicker.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(loadEdition('/admin/js/plugins/bootstrap-table/bootstrap-table.min.css')); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <!--bootstrap-datepicker start-->
    <script src="<?php echo e(loadEdition('/admin/js/plugins/datapicker/bootstrap-datepicker.js')); ?>"></script>
    <script src="<?php echo e(loadEdition('/admin/js/plugins/datapicker/bootstrap-datepicker.zh-CN.js')); ?>"></script>
    <!--bootstrap-datepicker end-->
    <!--bootstrap-table start-->
    <script src="<?php echo e(loadEdition('/admin/js/plugins/bootstrap-table/bootstrap-table.min.js')); ?>"></script>
    <script src="<?php echo e(loadEdition('/admin/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js')); ?>"></script>
    <!--bootstrap-table end-->
    <script src="<?php echo e(loadEdition('/js/global.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>